package Runde7;

public abstract class Tier {
	private String name;
	
	/**
	 * @precondition The given name must not be empty.
	 * @postcondition - creates new animal with the given name
	 */
	public Tier(String name) {
		this.name = name;
	}
	
	/**
	 * @postcondition - Delivers a readable form of this instance of Tier.
	 */
	public String toString() {
		return name;
	}
	
	/**
	 * @postcondition - returns the name of the animal
	 */
	protected String getName() {
		return name;
	}
	
}
